package com.fresh.liangyi.controller.user;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class LoginController {
    //向登录页面跳转
    @GetMapping("/login")
    public String toLogin(){
        return "comm/login";
    }

    //登录错误无权限跳转
    @GetMapping("/login?error")
    public String errorLogin(){
        return "comm/error_403";
    }



}
